package cn.gok.dao;

import cn.gok.entity.Course;
import cn.gok.entity.Student;
import cn.gok.entity.Teacher;
import cn.gok.util.R;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NewTeacherDao {
    //登录
    Teacher login(@Param("tea_id") String teaId, @Param("password") String password);

    //校验密码
    String checkPassword(@Param("name") String name, @Param("password") String password);

    //修改密码
    int changerPassword(@Param("password") String password,@Param("tea_id") String teaId);

    //添加课程
    int insertCourse(@Param("cou_name")String couName,@Param("startTime")String startTime,@Param("place")String place,@Param("max")String max
    ,@Param("teaName")String teaName,@Param("teaId")String teaId);

    //查询课程
    List<Course> selectCourse(@Param("cou_name")String couName, @Param("place")String place, @Param("state")String state,@Param("tea_id")String teaId);

    //删除课程
    int deleteCourse(@Param("cou_id")String couId,@Param("tea_id")String teaId);

    //查询学生
    List<Student> selectStudent(@Param("cou_id")String couId);

    //课程评分
    int updateScores(@Param("cou_id")String couId,@Param("stu_id")String stu_id,@Param("scores")String scores);

}
